package com.bdqn.vueboot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.vueboot.entity.Static;
import com.bdqn.vueboot.mapper.StaticMapper;
import com.bdqn.vueboot.service.StaticService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class StaticServiceImpl extends ServiceImpl<StaticMapper, Static>
        implements StaticService {
    @Resource
    StaticMapper staticMapper;

    @Override
    public List<Static> queryFurnitureStatic() {
        QueryWrapper<Static> queryWrapper = new QueryWrapper();
        queryWrapper.eq("static_Type", "furniture");
        return staticMapper.selectList(queryWrapper);
    }

    @Override
    public List<Static> queryMailStatic() {
        QueryWrapper<Static> queryWrapper = new QueryWrapper();
        queryWrapper.eq("static_Type", "mail");
        return staticMapper.selectList(queryWrapper);
    }
}




